home *** CD-ROM | disk | FTP | other *** search
/ Light ROM 1 / LIGHT-ROM 1 (Amiga Library Services)(1994).iso / ffdisks / d982.lha / HWGRCS / HWGdiffP1_2_6.lha / diffutils-2.6 / src / smakefile < prev    next >
Makefile  |  1994-01-26  |  6KB  |  193 lines

  1. # Makefile for GNU DIFF
  2. # Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
  3. #
  4. # This file is part of GNU DIFF.
  5. #
  6. # GNU DIFF is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10. #
  11. # GNU DIFF is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with GNU DIFF; see the file COPYING.  If not, write to
  18. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. #### Start of system configuration section. ####
  21.  
  22. srcdir =
  23. VPATH =
  24.  
  25. CC = SC
  26. INSTALL = COPY CLONE
  27. INSTALL_PROGRAM = COPY CLONE
  28. INSTALL_DATA = COPY CLONE
  29. MAKEINFO = makeinfo
  30.  
  31. DEFS = RESOPT "DEF=PR_FILE_NAME=*"LP*"" DEF=HAVE_CONFIG_H
  32.  
  33. CFLAGS = IGNORE=84,85,93,100,104,120,149,154,161 DEF=_AMIGA=1 DEF=AMIGA=1 \
  34.     ANSI STRICT ERROR=ALL DEF=_STRICT_ANSI\
  35.     "DEF=PRGVERSION=*"$$VER: HWGDIFFUTILSp1 2.6 (26.1.94) Changes ©1993,1994 by HWG, For Joan Thuesen*""\
  36.     IDIR=\
  37.     NOSTKCHK PPBUF=16384\
  38.     DEF=USE_BUILTIN_MATH DEF=__USE_SYSBASE\
  39.     OPT
  40.  
  41. LDFLAGS = LINK MAP
  42. LIBS = STRT=cres LIB hwgunix.lib
  43.  
  44. # Some System V machines do not come with libPW.
  45. # If this is true for you, use the GNU alloca.o here.
  46. ALLOCA = alloca.o
  47.  
  48. prefix =
  49. exec_prefix =
  50.  
  51. # Prefix for each installed program, normally empty or `g'.
  52. binprefix =
  53.  
  54. bindir =
  55.  
  56. infodir =
  57.  
  58. #### End of system configuration section. ####
  59.  
  60. SHELL =
  61.  
  62. # The source files for all of the programs.
  63. srcs=diff.c analyze.c cmpbuf.c cmpbuf.h io.c context.c ed.c normal.c ifdef.c \
  64.         util.c dir.c \
  65.         version.c diff.h regex.c regex.h side.c system.h \
  66.         diff3.c sdiff.c cmp.c error.c xmalloc.c getopt.c getopt1.c getopt.h \
  67.         fnmatch.c fnmatch.h alloca.c\
  68.         amiga.c
  69. # Object files for diff only.
  70. diff_o = diff.o analyze.o cmpbuf.o dir.o io.o util.o \
  71.         context.o ed.o ifdef.o normal.o side.o \
  72.         fnmatch.o getopt.o getopt1.o regex.o version.o $(ALLOCA) amiga.o
  73. distfiles = $(srcs) README INSTALL NEWS diagmeet.note Makefile.in configure \
  74.         configure.in COPYING ChangeLog diff.texi diff.info* texinfo.tex
  75.  
  76. all: config.h diff diff3 sdiff cmp diff.info
  77.  
  78. config.h:   config.h.amiga
  79.     @copy   config.h.amiga config.h clone quiet
  80.  
  81. .c.o:
  82.         $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $<
  83.  
  84. amiga.o: amiga.c smakefile
  85.         $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) $<
  86.  
  87. diff: $(diff_o)
  88.         $(CC) TO $@ $(LDFLAGS) $(diff_o) $(LIBS)
  89.  
  90. diff3_o = diff3.o getopt.o getopt1.o version.o amiga.o
  91. diff3: $(diff3_o)
  92.         $(CC) TO $@ $(LDFLAGS) $(diff3_o) $(LIBS)
  93.  
  94. sdiff_o = sdiff.o getopt.o getopt1.o version.o amiga.o
  95. sdiff: $(sdiff_o)
  96.         $(CC) TO $@ $(LDFLAGS) $(sdiff_o) $(LIBS)
  97.  
  98. cmp_o = cmp.o cmpbuf.o error.o getopt.o getopt1.o xmalloc.o version.o amiga.o
  99. cmp: $(cmp_o)
  100.         $(CC) TO $@ $(LDFLAGS) $(cmp_o) $(LIBS)
  101.  
  102. diff.guide: diff.texi
  103.         $(MAKEINFO) --amiga $(srcdir)/diff.texi
  104.         @delete >NIL: diff.guide force quiet
  105.         @rename diff.info diff.guide
  106.  
  107. diff.info: diff.texi
  108.         $(MAKEINFO) $(srcdir)/diff.texi
  109.  
  110. $(diff_o): diff.h system.h
  111. cmp.o diff3.o sdiff.o: system.h
  112. context.o diff.o regex.o: regex.h
  113. cmp.o diff.o diff3.o sdiff.o getopt.o getopt1.o: getopt.h
  114. diff.o fnmatch.o: fnmatch.h
  115. analyze.o cmpbuf.o cmp.o: cmpbuf.h
  116.  
  117. diff3.o: diff3.c
  118.         $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) "DEF=DIFF_PROGRAM=*"$(bindir)diff*"" diff3.c
  119.  
  120. sdiff.o: sdiff.c
  121.         $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) "DEF=DIFF_PROGRAM=*"$(bindir)diff*"" sdiff.c
  122.  
  123. TAGS: $(srcs)
  124.         etags $(srcs)
  125.  
  126. clean: cleancmds cleanobjs
  127.  
  128. cleancmds:
  129.         -DELETE FORCE diff diff3 sdiff cmp core
  130.  
  131. cleanobjs:
  132.         -DELETE FORCE \#?.map \#?.o \#?.lnk
  133.  
  134. mostlyclean: clean
  135.  
  136. distclean: clean
  137.         rm -f Makefile config.status
  138.  
  139. realclean: distclean
  140.         rm -f TAGS *.info*
  141.  
  142. install: all
  143.         -delete /bin/diff /bin/sdiff /bin/diff3 /bin/cmp all quiet
  144.         -rename diff /bin
  145.         -rename sdiff /bin
  146.         -rename diff3 /bin
  147.         -rename cmp /bin
  148.  
  149. uninstall:
  150.         for p in diff diff3 sdiff cmp; \
  151.         do rm -f $(bindir)/$(binprefix)$$p; done
  152.         rm -f $(infodir)/diff.info*
  153.  
  154. dist: $(distfiles)
  155.         echo diff-`sed -e '/version_string/!d' -e 's/[^0-9]*\([0-9a-z.]*\).*/\1/' -e q version.c` > .fname
  156.         rm -rf `cat .fname`
  157.         mkdir `cat .fname`
  158.         -ln $(distfiles) `cat .fname`
  159.         for file in $(distfiles); do \
  160.           if [ ! -r `cat .fname`/$$file ]; then cp -p $$file `cat .fname`; fi \
  161.         done
  162.         tar chZf `cat .fname`.tar.Z `cat .fname`
  163.         tar chf - `cat .fname` | gzip > `cat .fname`.tar.z
  164.         rm -rf `cat .fname` .fname
  165.  
  166. # Prevent GNU make v3 from overflowing arg limit on SysV.
  167. .NOEXPORT:
  168.  
  169. diff.o: diff.c config.h
  170. analyze.o: analyze.c config.h
  171. cmpbuf.o: cmpbuf.c config.h
  172. io.o: io.c config.h
  173. context.o: context.c config.h
  174. ed.o: ed.c config.h
  175. normal.o: normal.c config.h
  176. ifdef.o: ifdef.c config.h
  177. util.o: util.c config.h
  178. dir.o: dir.c config.h
  179. version.o: version.c config.h
  180. regex.o: regex.c config.h
  181. side.o: side.c config.h
  182. diff3.o: diff3.c config.h
  183. sdiff.o: sdiff.c config.h
  184. cmp.o: cmp.c config.h
  185. error.o: error.c config.h
  186. xmalloc.o: xmalloc.c config.h
  187. getopt.o: getopt.c config.h
  188. getopt1.o: getopt1.c config.h
  189. alloca.o: alloca.c config.h
  190. fnmatch.o: fnmatch.c config.h
  191.  
  192.  
  193.